package com.erlinyou.im.model.groupmove;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import com.erlinyou.im.model.base.AbstractDO;

@Entity
@Table(name="ofmucroom")
@IdClass(OfmucroomId.class)
public class Ofmucroom extends AbstractDO{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	private long serviceID;
	
	private long roomID;
	
	private char creationDate;
	
	private char modificationDate;
	
	@Id
	private String name;
	
	private String naturalName;
	
	private String description;
	
	private char lockedDate;
	
	private char emptyDate;
	
	private byte canChangeSubject;
	
	private int maxUsers;
	
	private byte publicRoom;
	
	private byte moderated;
	
	private byte membersOnly;
	
	private byte canInvite;
	
	private String roomPassword;
	
	private byte canDiscoverJID;
	
	private byte logEnabled;
	
	private String subject;
	
	private byte rolesToBroadcast;
	
	private byte useReservedNick;
	
	private byte canChangeNick;
	
	private byte canRegister;

	public long getServiceID() {
		return serviceID;
	}

	public void setServiceID(long serviceID) {
		this.serviceID = serviceID;
	}

	public long getRoomID() {
		return roomID;
	}

	public void setRoomID(long roomID) {
		this.roomID = roomID;
	}

	public char getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(char creationDate) {
		this.creationDate = creationDate;
	}

	public char getModificationDate() {
		return modificationDate;
	}

	public void setModificationDate(char modificationDate) {
		this.modificationDate = modificationDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNaturalName() {
		return naturalName;
	}

	public void setNaturalName(String naturalName) {
		this.naturalName = naturalName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public char getLockedDate() {
		return lockedDate;
	}

	public void setLockedDate(char lockedDate) {
		this.lockedDate = lockedDate;
	}

	public char getEmptyDate() {
		return emptyDate;
	}

	public void setEmptyDate(char emptyDate) {
		this.emptyDate = emptyDate;
	}

	public byte getCanChangeSubject() {
		return canChangeSubject;
	}

	public void setCanChangeSubject(byte canChangeSubject) {
		this.canChangeSubject = canChangeSubject;
	}

	public int getMaxUsers() {
		return maxUsers;
	}

	public void setMaxUsers(int maxUsers) {
		this.maxUsers = maxUsers;
	}

	public byte getPublicRoom() {
		return publicRoom;
	}

	public void setPublicRoom(byte publicRoom) {
		this.publicRoom = publicRoom;
	}

	public byte getModerated() {
		return moderated;
	}

	public void setModerated(byte moderated) {
		this.moderated = moderated;
	}

	public byte getMembersOnly() {
		return membersOnly;
	}

	public void setMembersOnly(byte membersOnly) {
		this.membersOnly = membersOnly;
	}

	public byte getCanInvite() {
		return canInvite;
	}

	public void setCanInvite(byte canInvite) {
		this.canInvite = canInvite;
	}

	public String getRoomPassword() {
		return roomPassword;
	}

	public void setRoomPassword(String roomPassword) {
		this.roomPassword = roomPassword;
	}

	public byte getCanDiscoverJID() {
		return canDiscoverJID;
	}

	public void setCanDiscoverJID(byte canDiscoverJID) {
		this.canDiscoverJID = canDiscoverJID;
	}

	public byte getLogEnabled() {
		return logEnabled;
	}

	public void setLogEnabled(byte logEnabled) {
		this.logEnabled = logEnabled;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public byte getRolesToBroadcast() {
		return rolesToBroadcast;
	}

	public void setRolesToBroadcast(byte rolesToBroadcast) {
		this.rolesToBroadcast = rolesToBroadcast;
	}

	public byte getUseReservedNick() {
		return useReservedNick;
	}

	public void setUseReservedNick(byte useReservedNick) {
		this.useReservedNick = useReservedNick;
	}

	public byte getCanChangeNick() {
		return canChangeNick;
	}

	public void setCanChangeNick(byte canChangeNick) {
		this.canChangeNick = canChangeNick;
	}

	public byte getCanRegister() {
		return canRegister;
	}

	public void setCanRegister(byte canRegister) {
		this.canRegister = canRegister;
	}
	
	
}
